package com.example.feign.clients.fallback;

import com.example.feign.clients.UserClient;
import com.example.feign.pojo.UserResponse;

public class UserClientFallbackFactory implements org.springframework.cloud.openfeign.FallbackFactory<UserClient> {
	@Override
	public UserClient create(Throwable cause) {
		return  new UserClient() {
			@Override
			public UserResponse findById(String id) {
				return new UserResponse();
			}
		};
	}
}
